package mr.zhang.service.impl;


import mr.zhang.dao.CustomerDao;
import mr.zhang.pojo.UserBean;
import mr.zhang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by jerry on 15/1/26.
 * E-mail:huaxinxc@me.com
 */
@Service("userService")
public class UserServiceImpl implements UserService {


    @Autowired
    private CustomerDao customerDao;

    public CustomerDao getCustomerDao() {
        return customerDao;
    }

    public void setCustomerDao(CustomerDao customerDao) {
        this.customerDao = customerDao;
    }


    /**
     * add user
     *
     * @param userBean
     * @return if true success else filed
     */
    @Override
    public boolean saveUser(UserBean userBean) {
        return false;
    }

    /**
     * delete user
     *
     * @param id
     */
    @Override
    public boolean deleteUser(int id) {
        return false;
    }

    /**
     * ceshi
     *
     * @return hello word!
     */
    @Override
    public String returnString() {
        return "hello , word";
    }
}
